Set the cursor before changing the selection to make the file chooser
authorMatthias Clasen <mclasen@redhat.com>
Wed, 6 Oct 2004 17:06:35 +0000 (17:06 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 6 Oct 2004 17:06:35 +0000 (17:06 +0000)
2004-10-06  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
before changing the selection to make the file chooser preview
update work better.  (#143826, Tommi Komulainen)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreeview.c

index f7ca661a86f6d44197315e88946c4f72fb8a444b..5aaee4a5c0b62758f16d9b9d0ad5d5225da283c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
+       before changing the selection to make the file chooser preview
+       update work better.  (#143826, Tommi Komulainen)
+
 2004-10-06  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrange.c (gtk_range_real_change_value): Replace a really
index f7ca661a86f6d44197315e88946c4f72fb8a444b..5aaee4a5c0b62758f16d9b9d0ad5d5225da283c2 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
+       before changing the selection to make the file chooser preview
+       update work better.  (#143826, Tommi Komulainen)
+
 2004-10-06  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrange.c (gtk_range_real_change_value): Replace a really
index f7ca661a86f6d44197315e88946c4f72fb8a444b..5aaee4a5c0b62758f16d9b9d0ad5d5225da283c2 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
+       before changing the selection to make the file chooser preview
+       update work better.  (#143826, Tommi Komulainen)
+
 2004-10-06  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrange.c (gtk_range_real_change_value): Replace a really
index f7ca661a86f6d44197315e88946c4f72fb8a444b..5aaee4a5c0b62758f16d9b9d0ad5d5225da283c2 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
+       before changing the selection to make the file chooser preview
+       update work better.  (#143826, Tommi Komulainen)
+
 2004-10-06  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrange.c (gtk_range_real_change_value): Replace a really
index 3f42c08f8c813a5723f932b6aa2030467f1e0e59..8af6c6fea237c06d575cc57d025b793a9d668f20 100644 (file)
@@ -12576,8 +12576,8 @@ gtk_tree_view_search_iter (GtkTreeModel     *model,
             {
               gtk_tree_view_scroll_to_cell (tree_view, path, NULL,
                                            TRUE, 0.5, 0.0);
-              gtk_tree_selection_select_iter (selection, iter);
              gtk_tree_view_real_set_cursor (tree_view, path, FALSE, TRUE);
+              gtk_tree_selection_select_iter (selection, iter);
 
              if (path)
                gtk_tree_path_free (path);